#import "HazeInspireCell.h"


@implementation HazeInspireCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setApprehension:(HazeInspireModel *)apprehension {
	_apprehension = apprehension;

	//: 配置cell的UI

}
- (UITextView *)xylophoneJuggleTextView {
	if (!_xylophoneJuggleTextView) {
	
        _xylophoneJuggleTextView = [[UITextView alloc] init];
	}
	return _xylophoneJuggleTextView;
}

- (UITextField *)velvetTextField {
	if (!_velvetTextField) {
	
        _velvetTextField = [[UITextField alloc] initWithFrame:CGRectZero];
	}
	return _velvetTextField;
}

- (UIImageView *)circulateKingdomHarmonyImageView {
	if (!_circulateKingdomHarmonyImageView) {
	
        _circulateKingdomHarmonyImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _circulateKingdomHarmonyImageView.contentMode = UIViewContentModeScaleAspectFill;
        _circulateKingdomHarmonyImageView.clipsToBounds = YES;
        _circulateKingdomHarmonyImageView.layer.cornerRadius = 8;
        _circulateKingdomHarmonyImageView.layer.masksToBounds = YES;
        _circulateKingdomHarmonyImageView.size = CGSizeMake(101, 155);
        _circulateKingdomHarmonyImageView.left = 11;
        _circulateKingdomHarmonyImageView.top = 5;
        UIImage *wonderQuicksilverGracious = [UIImage imageNamed:@"images/image_5.png"];
        if (wonderQuicksilverGracious) {
	        _circulateKingdomHarmonyImageView.image = wonderQuicksilverGracious;
        }
	}
	return _circulateKingdomHarmonyImageView;
}

//: unveilJuggleXenial 的点击事件
- (void)action_7 {}

//: _dabbleResilientKaleidoscopeButton 的点击事件
- (void)action_8 {}

- (UIButton *)dabbleResilientKaleidoscopeButton {
	if (!_dabbleResilientKaleidoscopeButton) {
	
        _dabbleResilientKaleidoscopeButton = [[UIButton alloc] initWithFrame:CGRectZero];
        UIImage *melodic = [UIImage imageNamed:@"images/icon_8.png"];
        if (melodic) {
	        [_dabbleResilientKaleidoscopeButton setImage:melodic forState:UIControlStateNormal];
        }
        [_dabbleResilientKaleidoscopeButton setTitle:@"button_8" forState:UIControlStateNormal];
        [_dabbleResilientKaleidoscopeButton setTitle:@"button_selected_8" forState:UIControlStateSelected];
        [_dabbleResilientKaleidoscopeButton setTitleColor:[UIColor colorWithRed:173/255.0 green:143/255.0 blue:23/255.0 alpha:0.7] forState:UIControlStateNormal];
        [_dabbleResilientKaleidoscopeButton setTitleColor:[UIColor colorWithRed:137/255.0 green:150/255.0 blue:29/255.0 alpha:1.0] forState:UIControlStateSelected];
        [_dabbleResilientKaleidoscopeButton addTarget:self action:@selector(action_8) forControlEvents:UIControlEventTouchUpInside];
	}
	return _dabbleResilientKaleidoscopeButton;
}

//: 设置self.velvetZealotVirtuousImageView的圆角
- (void)onwardGlimpse:(UIImageView *)joyous mergeLullaby:(CGFloat)blaze {
	joyous.layer.cornerRadius = blaze;
	joyous.layer.masksToBounds = YES;
}

- (void)xenophileUpliftAnticipateSetupViews {

    //: 描述_0
    self.anticipateTextField = [[UITextField alloc] initWithFrame:CGRectZero];
    self.anticipateTextField.size = CGSizeMake(106, 163);
    self.anticipateTextField.left = 49;
    self.anticipateTextField.top = 8;
    [self.contentView addSubview:self.anticipateTextField];


    //: 描述_1
    UIView *butterflyYearnKeepsake = [[UIView alloc] init];
    butterflyYearnKeepsake.frame = CGRectMake(40, 3, 165, 61);
    self.driftTonicView = butterflyYearnKeepsake;
    [self.contentView addSubview:butterflyYearnKeepsake];


    //: 描述_2
    UILabel *enchanting = [UILabel new];
    enchanting.text = @"label_2";
    enchanting.font = [UIFont systemFontOfSize:17 weight:UIFontWeightMedium];
    enchanting.textColor = [UIColor colorWithRed:243/255.0 green:108/255.0 blue:157/255.0 alpha:0.9];
    enchanting.textAlignment = NSTextAlignmentLeft;
    //: 不用理会的骚操作 = enchanting.numberOfLines = 1;
    NSInteger imprintGratitudeNostalgia = 1;
    if (imprintGratitudeNostalgia>10 && imprintGratitudeNostalgia < 5296) {
	    imprintGratitudeNostalgia = 66;
	    NSString *picture = [NSString stringWithFormat:@"%ld", (long)imprintGratitudeNostalgia];
	    if (picture.length>43 && [picture isEqualToString:enchanting.text]) {
		    imprintGratitudeNostalgia = picture.integerValue * 8;
	    }
    }
    enchanting.numberOfLines = imprintGratitudeNostalgia;
    self.melancholyPeacefulLabel = enchanting;
    [self.contentView addSubview:enchanting];
	[self.melancholyPeacefulLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(171);
		make.height.mas_equalTo(171);
	}];

	//: 描述_3
	[self.contentView addSubview:self.xylophoneJuggleTextView];
	[self.xylophoneJuggleTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(103);
		make.height.mas_equalTo(165);
		make.top.equalTo(@(13));
		make.bottom.equalTo(@(28));
	}];

	//: 描述_4
	[self.contentView addSubview:self.velvetTextField];
	[self.velvetTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(147);
		make.height.mas_equalTo(184);
		make.top.equalTo(@(15));
	}];

	//: 描述_5
	[self.contentView addSubview:self.circulateKingdomHarmonyImageView];


    //: 描述_6
    UITextField *virtuousZestZealot = [[UITextField alloc] init];
    self.vividMarbleDuskTextField = virtuousZestZealot;
    [self.contentView addSubview:virtuousZestZealot];
	[self.vividMarbleDuskTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(104);
		make.height.mas_equalTo(121);
		make.top.equalTo(@(19));
		make.bottom.equalTo(@(18));
	}];


    //: 描述_7
    UIButton *unveilJuggleXenial = [UIButton new];
    unveilJuggleXenial.size = CGSizeMake(155, 135);
    unveilJuggleXenial.left = 34;
    unveilJuggleXenial.top = 9;
    UIImage *dabbleUmbraHeatwave = [UIImage imageNamed:@"images/icon_7.png"];
    if (dabbleUmbraHeatwave) {
	    [unveilJuggleXenial setImage:dabbleUmbraHeatwave forState:UIControlStateNormal];
    }
    [unveilJuggleXenial setTitle:@"button_7" forState:UIControlStateNormal];
    [unveilJuggleXenial setTitle:@"button_selected_7" forState:UIControlStateSelected];
    [unveilJuggleXenial setTitleColor:[UIColor colorWithRed:228/255.0 green:20/255.0 blue:249/255.0 alpha:0.8] forState:UIControlStateNormal];
    [unveilJuggleXenial setTitleColor:[UIColor colorWithRed:199/255.0 green:192/255.0 blue:97/255.0 alpha:0.5] forState:UIControlStateSelected];
    [unveilJuggleXenial addTarget:self action:@selector(action_7) forControlEvents:UIControlEventTouchUpInside];
    self.blossomButton = unveilJuggleXenial;
    [self.contentView addSubview:unveilJuggleXenial];

	//: 描述_8
	[self.contentView addSubview:self.dabbleResilientKaleidoscopeButton];
	[self.dabbleResilientKaleidoscopeButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(143);
		make.height.mas_equalTo(190);
		make.bottom.equalTo(@(15));
	}];


    //: 描述_9
    self.velvetZealotVirtuousImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
    self.velvetZealotVirtuousImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.velvetZealotVirtuousImageView.clipsToBounds = YES;
    //: UIImageView的骚操作 充数
    [self onwardGlimpse:self.velvetZealotVirtuousImageView mergeLullaby:10];
    self.velvetZealotVirtuousImageView.size = CGSizeMake(54, 182);
    self.velvetZealotVirtuousImageView.left = 25;
    self.velvetZealotVirtuousImageView.top = 16;
    UIImage *onyxInvincibleXenon = [UIImage imageNamed:@"images/image_9.png"];
    if (onyxInvincibleXenon) {
	    self.velvetZealotVirtuousImageView.image = onyxInvincibleXenon;
    }
    [self.contentView addSubview:self.velvetZealotVirtuousImageView];
}


@end
